package com.xuanwu.cglib.demo;

import com.xuanwu.service.impl.OrderServiceImplCglib;

/***
 *cglib代理实现类
 */
public class TestCglibProxy {
    public static void main(String[] args) {
        //创建代理对象，并使用目标对象初始化
        OrderServiceImplCglib service=new OrderServiceCglibProxyFactory().createProxy();
        service.payOrder();
        service.queryOrder();
    }
}
